/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package gamedsl2;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EObject;

/**
 * <!-- begin-user-doc -->
 * A representation of the model object '<em><b>Event</b></em>'.
 * <!-- end-user-doc -->
 *
 * <p>
 * The following features are supported:
 * <ul>
 *   <li>{@link gamedsl2.Event#getMessage <em>Message</em>}</li>
 *   <li>{@link gamedsl2.Event#getName <em>Name</em>}</li>
 *   <li>{@link gamedsl2.Event#getType <em>Type</em>}</li>
 *   <li>{@link gamedsl2.Event#getTriggerEntity <em>Trigger Entity</em>}</li>
 *   <li>{@link gamedsl2.Event#getSubscriberEntities <em>Subscriber Entities</em>}</li>
 *   <li>{@link gamedsl2.Event#getTriggerGameState <em>Trigger Game State</em>}</li>
 *   <li>{@link gamedsl2.Event#getSubscriberGameStates <em>Subscriber Game States</em>}</li>
 * </ul>
 * </p>
 *
 * @see gamedsl2.Gamedsl2Package#getEvent()
 * @model annotation="http://www.eclipse.org/emf/2002/Ecore constraints='E2_SizeOfName E4_OnlyOneTrigger E3_SizeOfMessage G2_IfSubscriberThenTrigger G1_AtLeastOneSubscriberToTriggeredEvent'"
 *        annotation="http://www.eclipse.org/emf/2002/Ecore/OCL E2_SizeOfName='name.size() <= 30' E4_OnlyOneTrigger='let numOfTriggers : Integer = triggerEntity->size() + triggerGameState->size()\n\t\t\t\t\t\t\t\t\tin numOfTriggers <= 1' E3_SizeOfMessage='message.size() <= 30' G2_IfSubscriberThenTrigger='\n\t\t\tlet numOfTriggers : Integer = triggerEntity->size() + triggerGameState->size() in\n\t\t\tlet numOfSubscribers : Integer = subscriberEntities->size() + subscriberGameStates->size() in\n\t\t\tnumOfSubscribers > 0 implies numOfTriggers = 1' G1_AtLeastOneSubscriberToTriggeredEvent='\n\t\t\tlet numOfTriggers : Integer = triggerEntity->size() + triggerGameState->size() in\n\t\t\tlet numOfSubscribers : Integer = subscriberEntities->size() + subscriberGameStates->size() in\n\t\t\tnumOfTriggers = 1 implies numOfSubscribers > 0'"
 * @generated
 */
public interface Event extends EObject {
	/**
	 * Returns the value of the '<em><b>Message</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Message</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Message</em>' attribute.
	 * @see #setMessage(String)
	 * @see gamedsl2.Gamedsl2Package#getEvent_Message()
	 * @model
	 * @generated
	 */
	String getMessage();

	/**
	 * Sets the value of the '{@link gamedsl2.Event#getMessage <em>Message</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Message</em>' attribute.
	 * @see #getMessage()
	 * @generated
	 */
	void setMessage(String value);

	/**
	 * Returns the value of the '<em><b>Name</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Name</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Name</em>' attribute.
	 * @see #setName(String)
	 * @see gamedsl2.Gamedsl2Package#getEvent_Name()
	 * @model
	 * @generated
	 */
	String getName();

	/**
	 * Sets the value of the '{@link gamedsl2.Event#getName <em>Name</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Name</em>' attribute.
	 * @see #getName()
	 * @generated
	 */
	void setName(String value);

	/**
	 * Returns the value of the '<em><b>Type</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Type</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Type</em>' attribute.
	 * @see #setType(String)
	 * @see gamedsl2.Gamedsl2Package#getEvent_Type()
	 * @model
	 * @generated
	 */
	String getType();

	/**
	 * Sets the value of the '{@link gamedsl2.Event#getType <em>Type</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Type</em>' attribute.
	 * @see #getType()
	 * @generated
	 */
	void setType(String value);

	/**
	 * Returns the value of the '<em><b>Trigger Entity</b></em>' reference.
	 * It is bidirectional and its opposite is '{@link gamedsl2.Entity#getEntityTriggers <em>Entity Triggers</em>}'.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Trigger Entity</em>' reference isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Trigger Entity</em>' reference.
	 * @see #setTriggerEntity(Entity)
	 * @see gamedsl2.Gamedsl2Package#getEvent_TriggerEntity()
	 * @see gamedsl2.Entity#getEntityTriggers
	 * @model opposite="entityTriggers"
	 * @generated
	 */
	Entity getTriggerEntity();

	/**
	 * Sets the value of the '{@link gamedsl2.Event#getTriggerEntity <em>Trigger Entity</em>}' reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Trigger Entity</em>' reference.
	 * @see #getTriggerEntity()
	 * @generated
	 */
	void setTriggerEntity(Entity value);

	/**
	 * Returns the value of the '<em><b>Subscriber Entities</b></em>' reference list.
	 * The list contents are of type {@link gamedsl2.Entity}.
	 * It is bidirectional and its opposite is '{@link gamedsl2.Entity#getEntitySubscribers <em>Entity Subscribers</em>}'.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Subscriber Entities</em>' reference list isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Subscriber Entities</em>' reference list.
	 * @see gamedsl2.Gamedsl2Package#getEvent_SubscriberEntities()
	 * @see gamedsl2.Entity#getEntitySubscribers
	 * @model opposite="entitySubscribers"
	 * @generated
	 */
	EList<Entity> getSubscriberEntities();

	/**
	 * Returns the value of the '<em><b>Trigger Game State</b></em>' reference.
	 * It is bidirectional and its opposite is '{@link gamedsl2.State#getGameStateTriggers <em>Game State Triggers</em>}'.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Trigger Game State</em>' reference isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Trigger Game State</em>' reference.
	 * @see #setTriggerGameState(State)
	 * @see gamedsl2.Gamedsl2Package#getEvent_TriggerGameState()
	 * @see gamedsl2.State#getGameStateTriggers
	 * @model opposite="gameStateTriggers"
	 * @generated
	 */
	State getTriggerGameState();

	/**
	 * Sets the value of the '{@link gamedsl2.Event#getTriggerGameState <em>Trigger Game State</em>}' reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Trigger Game State</em>' reference.
	 * @see #getTriggerGameState()
	 * @generated
	 */
	void setTriggerGameState(State value);

	/**
	 * Returns the value of the '<em><b>Subscriber Game States</b></em>' reference list.
	 * The list contents are of type {@link gamedsl2.State}.
	 * It is bidirectional and its opposite is '{@link gamedsl2.State#getGameStateSubscribers <em>Game State Subscribers</em>}'.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Subscriber Game States</em>' reference list isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Subscriber Game States</em>' reference list.
	 * @see gamedsl2.Gamedsl2Package#getEvent_SubscriberGameStates()
	 * @see gamedsl2.State#getGameStateSubscribers
	 * @model opposite="gameStateSubscribers"
	 * @generated
	 */
	EList<State> getSubscriberGameStates();

} // Event
